<?php
$config['upload_path'] = './attachments/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '51200';
$config['max_width']  = '1024';
$config['max_height']  = '1024';
$config['file_name'] =  rand(11111, 99999).str_replace(array(' ','0.'), '', (string)microtime());